Skip to content

fix: 10 Bugfixes für Linux + cross-platform KI-Pipeline#19

Merged
TechFlipsi merged 1 commit into
mainfrom
fix/linux-bugfixes
Jul 17, 2026
Merged

fix: 10 Bugfixes für Linux + cross-platform KI-Pipeline#19
TechFlipsi merged 1 commit into
mainfrom
fix/linux-bugfixes

Conversation

@TechFlipsi

Copy link
Copy Markdown
Owner

Bugfixes

Core Bugfixes (Windows + Linux — getestet auf Ubuntu 24.04)

# Bug Datei Fix
1 EfficientNet Szenen-Klassifizierung: OpenCvSharp GetArray bei CV_32FC3 ImagePipeline.cs GetArray bei Multichannel-Mat → Split() + pro-Kanal GetArray
2 InferenceEngine: SetArray bei Multichannel-Mat InferenceEngine.cs HWC float[] → pro-Kanal SetArray + Cv2.Merge
3 InferenceEngine: Tensor-Indizierung bei mehrdim. Output InferenceEngine.cs output[i]output.ToArray() + Array.Copy
4 Lensfun: lf_db_find_cam → lf_db_find_cameras LensCorrector.cs Plural-Funktionen mit korrekten Parametern + Array-Dereferenzierung
5 Lensfun: lf_db_find_lens → lf_db_find_lenses_hd LensCorrector.cs 5-Parameter Signatur (db, camera, maker, lens, sflags)
6 Lensfun: lf_db_get_cams → lf_db_get_cameras LensCorrector.cs Korrekter Funktionsname
7 RealESRGAN: unerwartete Output-Größe ImagePipeline.cs Modell macht immer 4x → Output auf Ziel-Faktor herunterskalieren
8 RealESRGAN: SetArray bei CV_32FC3 ImagePipeline.cs Pro-Kanal SetArray + Merge
9 NAFNet/CodeFormer/AiLUTTransform: SetArray bei CV_32FC3 ImagePipeline.cs Zentrale ChwZuMat() Hilfsmethode
10 SceneDetector: CalcHist Rangef crash SceneDetector.cs CalcHist ersetzt durch direkte Pixel-Zählung

Linux-spezifisch

  • build-script.sh: Windows-DLLs (onnxruntime.dll) aus .deb entfernen — verursacht Protobuf parsing failed auf Linux

Avalonia

  • App.axaml.cs: Hardcoded Versionsnummer v0.5.4 → v0.7.0
  • i18n: 31 fehlende Keys in 11 Sprachen ergänzt (Batch, Crop, Histogramm, Plugin, Preset, Update-Dialog)

Neu: FlipsiColor.CLI

Terminal-basierte Version für headless Testing — nutzt dieselbe Core-Engine:

flipsicolor-cli image foto.jpg output.jpg --exposure 0.3 --turbo
flipsicolor-cli video clip.mp4 --contrast 0.2 --turbo
flipsicolor-cli info foto.jpg
flipsicolor-cli test

Cross-Platform-Verifikation

  • ✅ Windows liblensfun.dll und Linux liblensfun.so.1 haben identische API-Exports (beide lensfun 0.3.4)
  • ✅ OpenCvSharp 4.13 SetArray/GetArray Bug betrifft alle Plattformen — Split/Merge Fix ist cross-platform
  • ✅ RealESRGAN 4x Verhalten ist modell-intrinsisch, nicht plattform-spezifisch
  • ✅ ONNX Runtime Tensor-Indizierung ist plattform-unabhängig

Getestet auf Ubuntu 24.04 (headless)

  • ✅ KI Turbo-Modus (EfficientNet + Auto-Parameter)
  • ✅ RealESRGAN 2x Upscaling (256×256 → 512×512)
  • ✅ Video-Pipeline (150 Frames, Audio erhalten, SceneDetector ohne Fehler)
  • ✅ CLI Selbsttest: 7/7 bestanden
  • ✅ Alle 7 KI-Modelle laden (EfficientNet, NAFNet, RestormerLight, RealHATGAN, RealESRGAN, CodeFormer, AiLUTTransform)

Core Bugfixes (betreffen Windows + Linux):
- ImagePipeline: OpenCvSharp GetArray bei CV_32FC3 Mat → Split + pro-Kanal GetArray
- ImagePipeline: RealESRGAN macht immer 4x → Output auf Ziel-Faktor herunterskalieren
- ImagePipeline: SetArray bei CV_32FC3 → zentrale ChwZuMat() Hilfsmethode (NAFNet, CodeFormer, AiLUTTransform)
- InferenceEngine: SetArray bei Multichannel-Mat → pro-Kanal SetArray + Merge
- InferenceEngine: Tensor-Indizierung bei mehrdim. Output → ToArray() + Array.Copy
- LensCorrector: lf_db_find_cam → lf_db_find_cameras (lensfun 0.3.4 API, Windows + Linux identisch)
- LensCorrector: lf_db_find_lens → lf_db_find_lenses_hd (5-Parameter Signatur)
- LensCorrector: lf_db_get_cams → lf_db_get_cameras
- SceneDetector: CalcHist Rangef crash → manuelle Pixel-Zählung (OpenCvSharp 4.13 workaround)

Linux-spezifisch:
- build-script.sh: Windows-DLLs (onnxruntime.dll) aus .deb entfernen (Protobuf parsing failed)

Avalonia:
- App.axaml.cs: hardcoded v0.5.4 → v0.7.0
- i18n: 31 fehlende Keys in 11 Sprachen ergänzt (Batch, Crop, Histogramm, Plugin, Preset, Update)

Neu:
- FlipsiColor.CLI: Terminal-Version für headless Linux-Testing (image, video, info, test)
@TechFlipsi
TechFlipsi merged commit a2ae692 into main Jul 17, 2026
4 checks passed
@TechFlipsi
TechFlipsi deleted the fix/linux-bugfixes branch July 17, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant